class MessageAttachmentModel {
  /// 通话时长
  int? callTime;

  /// 主叫者ID
  String? fromUid;

  /// 被叫者ID
  String? toUid;

  /// 通话类型1是视频通话  2是语音通话
  int? calltype;

  /// 1主叫者取消  2被叫者拒绝  3呼叫超时  4已接通
  int? status;

  MessageAttachmentModel({callTime, fromUid, toUid, calltype, status});

  MessageAttachmentModel.fromJson(Map<String, dynamic> json) {
    callTime = json['call_time'];
    fromUid = json['from_uid'].toString();
    toUid = json['to_uid'].toString();
    calltype = json['calltype'];
    status = json['status'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['call_time'] = callTime;
    data['from_uid'] = fromUid;
    data['to_uid'] = toUid;
    data['calltype'] = calltype;
    data['status'] = status;
    return data;
  }
}
